package com.campus.schedule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("banner")
@ApiModel(value = "Banner对象", description = "轮播图表")
public class Banner extends IntegerIdBaseEntity<Banner> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类型：1-商家推广，2-优惠券活动")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("图片URL")
    @TableField("image")
    private String image;

    @ApiModelProperty("链接URL")
    @TableField("link")
    private String link;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("状态：1-显示，0-隐藏")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
